<script type="text/javascript" src="jquery-1.8.2.min.js"></script>
<script type="text/javascript">
  jQuery(document).ready(function(){
    jQuery('a').click(function(){
      var data = jQuery(this).html();
      alert(data);
    });
  });
</script>

<p><a href="#">Click Here 1</a></p>
<p><a href="#">Click Here 2 </a></p>
<p><a href="#">Click Here 3</a></p>
<p><a href="#">Click Here 4</a></p>
<p><a href="#">Click Here 5</a></p>
<p><a href="#">Click Here 6</a></p>
<p><a href="#">Click Here 7</a></p>